#ifndef __TEST2_H_
#define __TEST2_H_

#include <stdio.h>
#include <stdlib.h>
#include <time.h>

typedef int Elemtype;
typedef int status;
#define OK   0
#define NO   1

typedef struct Node
{
    Elemtype data;
    struct Node *next;
} Node;
typedef struct Node* LinkNode;

status LinkNode_CreateHead(LinkNode *list,int n);
status LinkNode_Insert(LinkNode *list, int i, Elemtype data);
status LinkNode_GetElem(LinkNode *list, int i, Elemtype *data);
status LinkNode_GetAllElem(LinkNode *list);
status LinkNode_Delete(LinkNode *list, int i);
status LinkNode_FreeAll(LinkNode *list);
status LinkNode_InsertTail(LinkNode *list, Elemtype data);
status LinkNode_RollBack(LinkNode *list);
void test2(void);

#endif // !__TEST2_H_
